[#include "../../common/html.ftl" /]

[#-- activiti-CSS样式库--]
[#macro head_activiti title="DB Adminer" css=[] ]
    [@head title=title css=css ]
        [#if css??]
            [#list css as c]
                [#if c=="gojs"]
                    <link rel="stylesheet" href="${ctx}/osfw/activiti/procdef/gojs/css/datainspector.css?v=${edition}"/>
                [/#if]
                [#if c=="step"]
                    <link rel="stylesheet" href="${ctx}/osfw/activiti/procdef/step/css/step.css?v=${edition}"/>
                    <link rel="stylesheet" href="${ctx}/osfw/activiti/procdef/contextmenu/css/contextmenu.css?v=${edition}"/>
                [/#if]
                [#if c=="process"]
                    <link rel="stylesheet" href="${ctx}/osfw/activiti/process/css/swiper-3.3.1.min.css?v=${edition}"/>
                    <link rel="stylesheet" href="${ctx}/osfw/activiti/process/css/wx.css?v=${edition}"/>
                [/#if]
                [#if c=="common"]
                    <link rel="stylesheet" href="${ctx}/osfw/activiti/common/common.css?v=${edition}"/>
                [/#if]
            [/#list]
        [/#if]
        [#-- 自定义CSS --]
        [#nested /]
    [/@head]
[/#macro]

[#-- activiti-JS插件库 --]
[#macro script_activiti js=[] progress="true" ]
    [@script js=js progress=progress ]
        [#if js??]
            [#list js as j]
                [#if j=="gojs"]
                    <script type="text/javascript" src="${ctx}/osfw/activiti/procdef/gojs/js/go.js?v=${edition}"></script>
                    <script type="text/javascript" src="${ctx}/osfw/activiti/procdef/gojs/js/datainspector2.js?v=${edition}"></script>
                    <script type="text/javascript" src="${ctx}/osfw/activiti/procdef/gojs/js/gojs-custom.js?v=${edition}"></script>
                [/#if]
                [#if j=="step"]
                    <script type="text/javascript" src="${ctx}/osfw/activiti/procdef/step/js/step.js?v=${edition}"></script>
                    <script type="text/javascript" src="${ctx}/osfw/activiti/procdef/step/js/step-custom.js?v=${edition}"></script>
                    <script type="text/javascript" src="${ctx}/osfw/activiti/procdef/contextmenu/js/contextmenu.js?v=${edition}"></script>
                    <script type="text/javascript" src="${ctx}/osfw/system/user/user-select.js?v=${edition}"></script>
                [/#if]
                [#if j=="process"]
                    <script type="text/javascript" src="${ctx}/osfw/activiti/process/js/swiper-3.3.1.min.js?v=${edition}"></script>
                [/#if]
                [#if j=="common"]
                    <script type="text/javascript" src="${ctx}/osfw/activiti/common/common.js?v=${edition}"></script>
                [/#if]
            [/#list]
        [/#if]
        [#-- 自定义JS --]
        [#nested /]
    [/@script]
[/#macro]
